import Axios from '@/utils/request'
export const loginApi = (params: any): Promise<LoginApi> => {
    return Axios({
        url: '/api/user/login',
        method: 'get',
        params
    })
}

export const registerApi = (data: any): Promise<any> => {
    return Axios({
        url: '/api/user/register',
        method: 'post',
        data
    })
}